package com.thinkingstar.iads.datacenter.entity;

import java.io.Serializable;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Table;

import com.thinkingstar.iads.common.entity.AbstractEntites;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/***
 * @ClassName: dc_equipment_equip_info 
 * @Description: 数据中心_设备_设备配备子表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Comment("数据中心_设备_设备配备子表")
@Table("dc_equipment_equip_info")
public class DcEquipmentEquipInfo extends AbstractEntites implements Serializable{
	
	@Comment("设备配备表表单id")
	@Column
	@ColDefine(type = ColType.VARCHAR, width = 32)
	protected String equipment_equip_id;
	
	@Comment("设备id")
	@Column
	@ColDefine(type = ColType.VARCHAR, width = 32)
	protected String equipment_id;
	
	@Comment("设备名称")
	@Column
	@ColDefine(type = ColType.VARCHAR, width = 50)
	protected String equipment_name;
	
	@Comment("设备数量")
	@Column
	@ColDefine(type = ColType.VARCHAR, width = 10)
	protected String equipment_num;
	
	public DcEquipmentEquipInfo(final DcEquipment dcEquipment , String equipment_equip_id){
		this.equipment_equip_id = equipment_equip_id;
		this.equipment_id = dcEquipment.getId();
		this.equipment_name = dcEquipment.getEquipment_name();
		this.equipment_num = "";
	}

}
